import algorithm

using 
  scoreList: seq[int]

proc latest*(scoreList): int =
  scoreList[^1] 

proc personalBest*(scoreList): int =
  max scoreList

proc personalTopThree*(scoreList): seq[int] =
  result = scoreList.sorted(SortOrder.Descending)
  if scoreList.len > 3:
    result = result[0..2]